<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<!-- <script type="text/javascript" src="/js/jquery-1.8.3.min.js"></script> -->
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<input id="id" name="id" th:value="${lebeProduct.id}"  type="hidden">
							<div class="form-group">	
								<label class="col-sm-3 control-label">首页展示图片：</label>
								<div class="col-sm-8">
									<img id="img1" th:src="@{${Oss_Url}+${lebeProduct.image}}" style="height:60px"/>
									<span class="btn btn-success fileinput-button  pull-right">
							            <span>上传</span>
							            <input id="initImageFile" type="file" name="file" data-url="http://47.99.99.252:8080/as_file/upload" multiple >
							        </span>
							        <input id="image" name="image" class="form-control" th:value="${lebeProduct.image}" type="hidden" readonly="readonly"/>
								</div>
							</div>
							<div class="form-bjnone">
	                            <div class="cl">
	                                <span class="btn btn-success fileinput-button">
							            <span>添加轮播图</span>
							            <input id="ProductImagefileUpload" type="file" name="file" data-url="http://47.99.99.252:8080/as_file/upload" multiple />
							        </span>
	                            </div>
	                            <div style="overflow-x: auto">
	                                <table class="table users table-bordered table-condensed dataTables-example dataTable">
	                                    <tbody>
	                                    	<tr id="attachmentTbody">  
										        <td th:each="m : ${listAxImageDO}" style="width:60px;height:60px;text-align:center" >
										        	<img th:src="@{${Oss_Url}+${m.src}}" style="width:60px;height:60px"/>
											        <input type="hidden" class='form-control' name='attachs_src' th:value='${m.src}' readonly='readonly'/>
											        <a href='javascript:;' class='deleteProductImage' onclick='removeAttach(this);'>删除</a>
										        </td>  
										    </tr>
	                                    </tbody>
	                                </table>
	                            </div>
	                        </div>
							
							<div class="form-bjnone">
	                            <div class="cl">
	                                <span class="btn btn-success fileinput-button">
							            <span>添加详情图</span>
							            <input id="ProductImagefileUpload1" type="file" name="file" data-url="http://47.99.99.252:8080/as_file/upload" multiple />
							        </span>
	                            </div>
	                            <div style="overflow-x: auto">
	                                <table class="table users table-bordered table-condensed dataTables-example dataTable">
	                                    <tbody>
	                                    	<tr id="attachmentTbody1">  
										        <td th:each="m : ${listAxImageDO1}" style="width:60px;height:60px;text-align:center" >
										        	<img th:src="@{${Oss_Url}+${m.src}}" style="width:60px;height:60px"/>
										        	<input type="text" class='form-control' name='attachs1_sort' th:value='${m.sort}'/>
											        <input type="hidden" class='form-control' name='attachs1_src' th:value='${m.src}' readonly='readonly'/>
											        <a href='javascript:;' class='deleteProductImage' onclick='removeAttach(this);'>删除</a>
										        </td>  
										    </tr>
	                                    </tbody>
	                                </table>
	                            </div>
	                        </div>
	                        <div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer">
	</div>
	<script type="text/javascript" src="/js/appjs/shop/lebeProduct/image.js"/>
</body>
</html>
